package com.aoyy.util.product;

import java.util.List;
import java.util.ArrayList;
/**========================================
 * <code>Sex</code> enum
 * @author Administrator
 * @date 2017-07-12
 * ========================================= */
public enum Sex {
  MALE {
	@Override
	public String getName() {
      return "Male";		
	}
  },
  FEMALE {
	@Override
	public String getName() {
	  return "Female";	
	}
  },
  ALL {
	@Override 
	public String getName() {
	  return "All";	
	}
  };
  
  public abstract String getName();
  
  public static List<String> getNames() {
	List<String> list = new ArrayList<String>();
	Sex[] sexs = Sex.values();
	for (Sex sex: sexs) {
	  list.add(sex.getName());	
	}
	return list;
  }
  
}